Imports System.ComponentModel.DataAnnotations
Imports System.ComponentModel.DataAnnotations.Schema

<Table("<TableU>", Schema:="<OwnerU>")>
Public Class <OwnerU>_<TableU>

    <If Loop>
       <IsPKey>
    <Key>
    <Column(Order:=<iVarA>)>
      <iVarA=+[1]>
       <IsNotNull>
    Public Property <FieldU>() As <VBType>

       <IsNull>
       <And>
       <IsNotNullable>
    Public Property <FieldU>() As <VBType>

       <IsNull>
       <And>
       <IsNullable>
    Public Property <FieldU>() As Nullable(Of <VBType>)

    </If Loop>
End Class

<If Loop>
      <IsFKeyCount>
Public Class <OwnerU>_<TableU>Joined
      	<ExitLoop>
</If Loop>

<If Loop>
      <IsFKeyCount>
      <And>
      <IsPKey>
    <Key> _
      <IsFKeyCount>
      <And>
      <IsNotFKey>
      <And>
      <IsNullable>
      <And>
      <IsNull>
    Public Property <FieldU>() As Nullable(Of <VBType>)

      <IsFKeyCount>
      <And>
      <IsNotFKey>
      <And>
      <IsNullable>
      <And>
      <IsNotNull>
    Public Property <FieldU>() As <VBType>

      <IsFKeyCount>
      <And>
      <IsNotFKey>
      <And>
      <IsNotNullable>
    Public Property <FieldU>() As <VBType>

      <IsFKeyCount>
      <And>
      <IsFKey>
      <And>
      <IsNotRDisplayField>
      <And>
      <IsNullable>
      <And>
      <IsNull>
    Public Property <FieldU>() As Nullable(Of <VBType>)

      <IsFKeyCount>
      <And>
      <IsFKey>
      <And>
      <IsNotRDisplayField>
      <And>
      <IsNullable>
      <And>
      <IsNotNull>
    Public Property <FieldU>() As <VBType>

      <IsFKeyCount>
      <And>
      <IsFKey>
      <And>
      <IsNotRDisplayField>
      <And>
      <IsNotNullable>
    Public Property <FieldU>() As <VBType>

      <IsFKeyCount>
      <And>
      <IsFKey>
      <And>
      <IsRDisplayField>
      <And>
      <IsNotComboBox (Db)>
      <And>
      <IsNullable>
      <And>
      <IsNull>
    Public Property <DRField>() As Nullable(Of <DRType>)

      <IsFKeyCount>
      <And>
      <IsFKey>
      <And>
      <IsRDisplayField>
      <And>
      <IsNotComboBox (Db)>
      <And>
      <IsNullable>
      <And>
      <IsNotNull>
    Public Property <DRField>() As <DRType>

      <IsFKeyCount>
      <And>
      <IsFKey>
      <And>
      <IsRDisplayField>
      <And>
      <IsNotComboBox (Db)>
      <And>
      <IsNotNullable>
    Public Property <DRField>() As <DRType>

      <IsFKeyCount>
      <And>
      <IsFKey>
      <And>
      <IsRDisplayField>
      <And>
      <IsComboBox (Db)>
    Public Property <FieldU>() As String

</If Loop>
<If Loop>
      <IsFKeyCount>
End Class
      	<ExitLoop>
</If Loop>
